﻿
// ReSharper disable CheckNamespace
using System;

namespace NiuX.Objects
{
    public static partial class ConvertExtensions
    {

        public static short ToInt16(this object str) => Convert.ToInt16(str);

        public static short ToShort(this object str) => Convert.ToInt16(str);

        public static int ToInt32(this object str) => Convert.ToInt32(str);

        public static int ToInt(this object str) => Convert.ToInt32(str);

        public static long ToInt64(this object str) => Convert.ToInt64(str);

        public static long ToLong(this object str) => Convert.ToInt64(str);

        public static DateTime ToDateTime(this object str) => Convert.ToDateTime(str);

        public static bool ToBoolean(this object str) => Convert.ToBoolean(str);


    }
}